//
//  WithdrawLTableViewCell.m
//  DA_V
//
//  Created by 周季阳 on 15/5/11.
//  Copyright (c) 2015年 zhouhai. All rights reserved.
//

#import "WithdrawLTableViewCell.h"
#import "InterFace.h"
#import "UIViewAdditions.h"
@implementation WithdrawLTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
        
        [self createrOffLineUI:CGRectMake(self.zDate.left, 0, 1, 30)];
        
        self.zDate = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 0.3125*SCREEN_WIDTH, 30)];
        self.zDate.textAlignment = NSTextAlignmentCenter;
        [self addSubview:self.zDate];
        self.zDate.font = [UIFont systemFontOfSize:12];
        [self createrOffLineUI:CGRectMake(self.zDate.left, 29, SCREEN_WIDTH-10, 1)];
        
        [self createrOffLineUI:CGRectMake(self.zDate.right, 0, 1, 30)];
        
        self.zTime = [[UILabel alloc] initWithFrame:CGRectMake(self.zDate.right, 0,  0.21875*SCREEN_WIDTH, 30)];
        self.zTime.textAlignment = NSTextAlignmentCenter;
        self.zTime.font = [UIFont systemFontOfSize:12];
        [self addSubview:self.zTime];
        
        [self createrOffLineUI:CGRectMake(self.zTime.right, 0, 1,30)];
        
        self.zPrice = [[UILabel alloc] initWithFrame:CGRectMake(self.zTime.right, 0,  0.1875*SCREEN_WIDTH, 30)];
        self.zPrice.textAlignment = NSTextAlignmentCenter;
        self.zPrice.font = [UIFont systemFontOfSize:12];
        [self addSubview:self.zPrice];
        
        [self createrOffLineUI:CGRectMake(self.zPrice.right, 0, 1,30)];
        
        if (SCREEN_WIDTH == 320) {
            self.zState = [[UILabel alloc] initWithFrame:CGRectMake(_zPrice.right, 0,  0.21875*SCREEN_WIDTH,30)];
            
        }else if (SCREEN_WIDTH == 375){
            self.zState = [[UILabel alloc] initWithFrame:CGRectMake(_zPrice.right, 0,  0.22575*SCREEN_WIDTH,30)];
        }else{
            self.zState = [[UILabel alloc] initWithFrame:CGRectMake(_zPrice.right, 0,  0.232*SCREEN_WIDTH,30)];
        }
        self.zState.textAlignment = NSTextAlignmentCenter;
        self.zState.font = [UIFont systemFontOfSize:12];
        [self addSubview:_zState];
        
        [self createrOffLineUI:CGRectMake(self.zState.right, 0, 1, 30)];
        
        [self createrOffLineUI:CGRectMake(self.zPrice.right, 0, 1,30)];
        
      
        
    }
    return self;
}

-(void)createrOffLineUI:(CGRect)rect{
    UIView *lines = [[UIView alloc] initWithFrame:rect];
    lines.backgroundColor = [UIColor colorWithRed:179/255.0 green:179/255.0 blue:179/255.0 alpha:1];
    [self addSubview:lines];
}


@end
